{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import subprocess"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "gitee_rep_urls = [\n",
    "    \"https://gitee.com/ld269440877/images.git\",\n",
    "    \"https://gitee.com/ld269440877/play-ground.git\",\n",
    "    \"https://gitee.com/ld269440877/tools.git\",\n",
    "    \"https://gitee.com/ld269440877/python3-notebook.git\",\n",
    "    \"https://gitee.com/ld269440877/reading-methodology.git\",\n",
    "    \"https://gitee.com/ld269440877/automated-tasks.git\",\n",
    "    \"https://gitee.com/ld269440877/operating-system-configuration.git\",\n",
    "    \"https://gitee.com/ld269440877/tutorials.git\",\n",
    "    \"https://gitee.com/ld269440877/frp-intranet-penetration.git\",\n",
    "    \"https://gitee.com/ld269440877/workspace.git\",\n",
    "    \"https://gitee.com/ld269440877/chrome.git\",\n",
    "    \"https://gitee.com/ld269440877/scientific-surfing.git\",\n",
    "    \"https://gitee.com/ld269440877/flask-tutorials.git\",\n",
    "]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "gitee_rep_urls = list()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "AutoGit_dir = os.getcwd()\n",
    "os.chdir(\"../../\")\n",
    "try:\n",
    "    for url in gitee_rep_urls:\n",
    "        subprocess.Popen([\"git\", \"clone\", url])\n",
    "except Exception as err:\n",
    "    print(err)\n",
    "finally:\n",
    "    os.chdir(AutoGit_dir)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
